package com.hejian.android.a72ggametools.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/1/20.
 */
public class DatabaseOpenHelper extends SQLiteOpenHelper {
    static String name = "userinfo.db";
    static int version = 1;
    public DatabaseOpenHelper(Context context) {
        super(context,name,null,version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql = "create table if not exists users(_id integer primary key ,username integer ," +
                "password text ,nickname text)";
        db.execSQL(sql);

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
